import request from '@/utils/request'

// 查询列表
export function listLog(query) {
  return request({
    url: '/lock/log/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getLog(id) {
  return request({
    url: '/lock/log/' + id,
    method: 'get'
  })
}

// 新增
export function addLog(data) {
  return request({
    url: '/lock/log/add',
    method: 'post',
    data: data
  })
}

export function refreshLogs(){
	return request({
		url: '/lock/log/refreshLog',
		method: 'post'
	})
}


// 删除
export function delLog(ids) {
  return request({
    url: '/lock/log/' + ids,
    method: 'delete'
  })
}

// 导出
export function exportLog(query) {
  return request({
    url: '/lock/log/export',
    method: 'get',
    params: query
  })
}